﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.freegiftsale.ui {
    import flash.display.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.*;
    import Classes.util.*;
    import Modules.flashsale.ui.*;

    public class FreeGiftSaleDialog extends FlashSaleMiniDialog {

        public function FreeGiftSaleDialog(_arg1:String, _arg2:String="", _arg3:int=0, _arg4:Function=null, _arg5:String="", _arg6:String="", _arg7:Boolean=true, _arg8:int=0, _arg9:String="", _arg10:Function=null, _arg11:String=""){
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Object = m_assetDependencies[DelayedAssetLoader.FLASHSALE_ASSETS];
            var _local2:Dictionary = new Dictionary();
            _local2["dialog_bg"] = (new EmbeddedArt.freeGiftSale_bg() as DisplayObject);
            _local2["loc_heading1"] = ZLoc.t("Dialogs", "FreeGift_heading");
            _local2["loc_heading2"] = Global.player.name;
            _local2["loc_body1"] = ZLoc.t("Dialogs", "FreeGiftCellBody1");
            _local2["loc_body2"] = ZLoc.t("Dialogs", "FreeGiftCellBody2");
            return (_local2);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:Object = this.getListData();
            return (new FreeGiftSaleDialogView(_arg1, m_message, m_title, GenericDialogView.TYPE_MODAL, null, "", 0, {listdata:this.getListData()}));
        }
        override protected function getListData():Array{
            return (Global.freeGiftSaleManager.getSales());
        }

    }
}//package Modules.freegiftsale.ui 
